import { divide } from './MathUtil'

export default function (value: any): number {
    const num = Number(value)
    if (isNaN(num)) {
        return 0
    }
    return parseFloat(divide(num, 1000).toFixed(3))
}
